<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/V_service_charge.js此处编写
 -->
 <template>
  <div>
      <view-grid
                 ref="grid"
                 :columns="columns"
                 :detail="detail"
                 :editFormFields="editFormFields"
                 :editFormFileds="editFormFields"
                 :editFormOptions="editFormOptions"
                 :searchFormFields="searchFormFields"
                 :searchFormFileds="searchFormFields"
                 :searchFormOptions="searchFormOptions"
                 :table="table"
                 :extend="extend">
      </view-grid>
  </div>
</template>

<script>
  import extend from "@/extension/mall/v_member_consume.js";
  import ViewGrid from "@/components/basic/ViewGrid.vue";
  var vueParam = {
      components: {
          ViewGrid
      },
      data() {
          return {
              table: {
                  key: 'childrenNumber',
                  footer: "Foots",
                  cnName: '储值卡消费明细报表',
                  name: 'V_member_consume',
                  url: "/V_member_consume/",
                  sortName: "createDate"
              },
              extend: extend,
              editFormFields: {},
              editFormOptions: [],
              searchFormFields:{"title":"","order_number":"","bookingPhone":"","createDate":"","distributorCode":"","type":"","BookingName":"","wxOrderNo":"","outRefundNos":"","refundOfTime":""},
              searchFormOptions: [
                    [{"title":"订单号","field":"order_number","type":"like"},{"title":"商品名称","field":"title","type":"like"},{"title":"创建时间","field":"createDate","type":"datetime"}],
                    [{"title":"支付流水号","field":"wxOrderNo","type":"like"},{"title":"子单号","field":"childrenNumber","type":"like"},{"dataKey":"distributorList","data":[],"title":"分销商名称","field":"distributorCode","type":"select"}],
                    [{"title":"退款流水号","field":"outRefundNos","type":"like"},{"title":"退款时间","field":"refundOfTime","type":"datetime"},{"title":"退款备注","field":"spare4","type":"like"}],
                    [{"title":"申请人","field":"BookingName","type":"like"},]],
              columns: [{field:'createDate',title:'创建时间',type:'datetime',width:160,align:'left',sortable:true},
                     {field:'member_name',title:'订单号',type:'string',width:200,align:'left'},
                     {field:'memberid',title:'会员编号',type:'string',width:220,require:true,align:'left'},
                     {field:'cardno',title:'卡号',type:'string',width:220,align:'left'},
                     {field:'hoteldate',title:'单价',type:'decimal',width:60,align:'left'},
                     {field:'paytype',title:'数量',type:'int',width:60,align:'left'},
                     {field:'amount',title:'金额',type:'decimal',width:90,align:'left'},
                     {field:'presented_amount',title:'手续费',type:'decimal',width:90,align:'left'},
                     {field:'totalamount',title:'实退金额',type:'decimal',width:90,align:'left'},
        ],


              detail: {
                  cnName:"#detailCnName",
                  columns: [],
                  sortName: "",
                  key:""
              }
          };
      }
  };
  export default vueParam;
</script>
